textview: Only trigger drag gesture on GDK_BUTTON_PRIMARY
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 31 May 2014 12:54:32 +0000 (14:54 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 31 May 2014 13:11:05 +0000 (15:11 +0200)
commit995b6d1fd4350f845b002b0929db549a8f1f4499
treec78178495f9dd45ce3db1d9f4ab956e1b5a92731
parentfc1e274b897fe719dbec4e0c0f98d2753fa350ac
textview: Only trigger drag gesture on GDK_BUTTON_PRIMARY

This gesture was only meant to react on GDK_BUTTON_PRIMARY (either
through real pointer events, or implicitly assumed from touch events),
as it used to behave before gestures. Otherwise the gtk_drag_begin*()
call assumes being triggered by button 1, and the drag misbehaves
because that button isn't really in the state mask.

https://bugzilla.gnome.org/show_bug.cgi?id=731016
gtk/gtktextview.c